
<table class="login" border="1">
    <tr>
        <td>id</td>
        <td>title</td>
        <td>content</td>
    </tr>

    <% list.forEach(function(item,index){%>
      
      <tr>
       <td><%= (index+1) %></td>

       <td><%- item.title %></td>
       <td><%- item.content %></td>
       </tr>
       <%})%>

    <tr>
        <td colspan="3">
            <a href="./detail?pageNo=1">首页</a>
            <a href="./detail?pageNo=<%= pageNo > 1 ?  parseInt(pageNo)-1: 1 %>">上一页</a>
            <a href="./detail?pageNo=<%= pageNo< totalPages ? parseInt(pageNo)+1: totalPages%>">下一页</a>
            <a href="./detail?pageNo=<%= totalPages%>">末页</a>
            <%= pageNo %> / <%= totalPages%> 共<%= count %>条记录
        </td>
    </tr>
    </table>

